//============================================================================
// Name        : problem109.cpp
// Author      : Yang Yang
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>

using namespace std;

int main() {
	int scores[180] = {0}, doubleOut[22] = {0}, runningTotal = 0;
	for (int i = 1; i < 21; i++) doubleOut[i] = i;
	doubleOut[21] = 25;
	for (int i = 1; i < 22; i++) {
		runningTotal = doubleOut[i] * 2;
		scores[runningTotal]++;
		for(int j = 1; j < 22; j++) {
			int end = 4;
			if (j == 21) end = 3;
			for (int weight1 = 1; weight1 < end; weight1++) {
				scores[runningTotal + weight1*doubleOut[j]]++;
				for(int k = j; k < 22; k++) {
					int end2 = 4, start = 1;
					if (k == 21) end2 = 3;
					if (k == j) start = weight1;
					for(int weight2 = start; weight2 < end2; weight2++)
						scores[runningTotal + weight1*doubleOut[j] + weight2*doubleOut[k]]++;
				}
			}
		}
	}
	int sum = 0;
	for(int i = 2; i < 100; i++)
		sum += scores[i];
	cout<<sum;
	cout<<endl;
	return 0;
}
